﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using APC.Common;

namespace APC
{
    class Report
    {

        #region Properties

        public int Id
        {
            get { return _Id; }
            set { _Id = value; }
        }
        private int _Id = 0;

        public string ReportName
        {
            get { return _ReportName ;}
            set { _ReportName = value;}
        }
        private string _ReportName = "";

        public string ReportRuntime
        {
            get { return _ReportRuntime; }
            set { _ReportRuntime = value; }
        }
        private string _ReportRuntime = "";

        public List<APC.Common.Report> ReportList
        {
            get { return _ReportList; }
            set { _ReportList = value; }
        }
        private List<APC.Common.Report> _ReportList;

        #endregion

        #region Constructor

        public Report()
        {
            LoadReportList();
        }

        #endregion


        #region Methods

        private void LoadReportList()
        {
            DataHandlingDataContext ctx = new DataHandlingDataContext(new Data().ConnectionString);

            this._ReportList = ctx.Reports.ToList();

        }



        #endregion


    }
}
